package com.ylr.user.common.vo.user;

import com.ylr.base.common.jsr303.group.Save;
import com.ylr.base.common.jsr303.group.Update;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-12 11:33:01
 * className: UserVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
public class UserVo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = Update.class)
    private Long id;

    /**
     * 部门主键
     */
    @NotNull(message = "部门主键不能为空", groups = Update.class)
    private Long deptId;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空", groups = { Save.class, Update.class })
    private String username;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 邮箱号
     */
    private String email;

    /**
     * 登录别名
     */
    private String loginName;

    /**
     * 登录密码
     */
    @NotBlank(message = "登录密码不能为空", groups = Save.class)
    private String password;

    /**
     * 部门领导标记[0-是 1-否]
     */
    @NotNull(message = "是否领导不能为空", groups = Save.class)
    private Integer leaderStatus;

}
